const index = I = {
	add() {
		var _formData = $('#addForm').serialize(); //序列化数据
		var isAdd = confirm("是否注册?");
		if (isAdd) {
			$.ajax({
				url: url.path + 'userr/zcUser',
				data: _formData,
				type: 'post',
				dataType: 'json',
				success: function(res) {
					if (res.code == 200) {
						location.href = './userLogin.html';
					}
				},
				error: function() {
					alert('注册失败');
				}
			});
		}
	}
};
$(function() {
	$('#zc').click(function() {
		I.add();
	});
});